package com.originskyseed.platform.cms.mapper;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.cms.model.CmsAnchorRelateCollect;

/**
 * 收藏主播信息表Mapper类（OSI_ANCHOR_RELATE_COLLECT）
 *
 * @author wlj
 */
public interface CmsAnchorRelateCollectMapper {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(CmsAnchorRelateCollect record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(CmsAnchorRelateCollect record) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(CmsAnchorRelateCollect record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(CmsAnchorRelateCollect record) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public CmsAnchorRelateCollect selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<CmsAnchorRelateCollect> selectList(CmsAnchorRelateCollect record) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<CmsAnchorRelateCollect> selectListByPage(Map<String, Object> params) throws Exception;

	/**
	 * 根据主播ID和用户名查询
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public CmsAnchorRelateCollect selectCollectByAnchorIdAndUserId(CmsAnchorRelateCollect record) throws Exception;

}
